package com.ice.work.moment.oauth.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;

/**
 * @Description 用户
 * @Author DELL
 * @Create 2019-02-11
 * @Since 1.0.0
 */
@RestController
public class UserController {
    @GetMapping("/current-user")
    public Principal user(Principal user){
        return user;
    }
}
